package com.osce.common.constant;

/**
 * 用户常量信息
 *
 * @author ruoyi
 */
public class UserConstants {
    /**
     * 平台内系统用户的唯一标志
     */
    public static final String SYS_USER = "SYS_USER";

    /**
     * 正常状态
     */
    public static final String NORMAL = "0";

    /**
     * 异常状态
     */
    public static final String EXCEPTION = "1";

    /**
     * 用户封禁状态
     */
    public static final String USER_DISABLE = "1";

    /**
     * 角色封禁状态
     */
    public static final String ROLE_DISABLE = "1";

    /**
     * 科室正常状态
     */
    public static final Integer DEPT_NORMAL = 1;

    /**
     * 科室停用状态
     */
    public static final Integer DEPT_DISABLE = 2;

    /**
     * 字典正常状态
     */
    public static final String DICT_NORMAL = "0";

    /**
     * 是否为系统默认（是）
     */
    public static final String YES = "Y";

    /**
     * 是否菜单外链（是）
     */
    public static final String YES_FRAME = "0";

    /**
     * 是否菜单外链（否）
     */
    public static final String NO_FRAME = "1";

    /**
     * 菜单类型（目录）
     */
    public static final String TYPE_DIR = "M";

    /**
     * 菜单类型（菜单）
     */
    public static final String TYPE_MENU = "C";

    /**
     * 菜单类型（按钮）
     */
    public static final String TYPE_BUTTON = "F";

    /**
     * Layout组件标识
     */
    public final static String LAYOUT = "Layout";

    /**
     * ParentView组件标识
     */
    public final static String PARENT_VIEW = "ParentView";

    /**
     * InnerLink组件标识
     */
    public final static String INNER_LINK = "InnerLink";

    /**
     * 校验是否唯一的返回标识
     */
    public final static boolean UNIQUE = true;
    public final static boolean NOT_UNIQUE = false;

    /**
     * 用户名长度限制
     */
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;

    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;

    /**
     * 加密后的123456
     */
    public static final String DEFAULT_PASSWORD = "$2a$10$0NZYIllzgtXtxjNpogc4K.h8CT0C1i4vJA1fb/FzjYBODD4gVuchC";


    /**
     * 教师常量
     */
    public static final String TEACHER_TYPE = "1";//1代表教师
    public static final Long[] TEACHER_ROLES = new Long[]{3L};//3代表教师

    /**
     * 学员常量
     */
    public static final String STUDENT_TYPE = "2";//2代表学生
    public static final Long[] STUDENT_ROLES = new Long[]{4L};//4代表学生

    /**
     * 标准化病人常量
     */
    public static final String SIMULATED_PATIENT_TYPE = "3";//2代表标准化病人
    public static final Long[] SIMULATED_PATIENT_ROLES = new Long[]{5L};//5代表标准化病人
    public static final Long SIMULATED_PATIENT_DICT = 112L;//112代表标准化科室
}
